<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/manage/common/taglibs.jsp" %>
<div class="body" style="position: relative">
    <div style="position: absolute;left: 20px;top:10px ; width: 70px; text-align: center;color: #47a6f5;cursor:pointer;border: 1px solid  #47a6f5;line-height: 28px"
         onclick="manage_sys_opens('中心机房','/manage/demo/powerPage/tosecondaryPages.html')">返回</div>
<div class="container"><div class="EMStop1"></div></div>
<div class="container1">
    <div class="EMSUspContent"><p class="EMStitle" style="position: absolute;top:40px ;position: relative">消防安全实时监控</p>
        <div class="content">
            <div class="left">
                <div class="upsSd" style=" background-image: url('/manage/assert/image/xiaofang.gif');">
                    <div class="loading" id="box">

                    </div>
                </div>
                <p>连接状态 :<span class="linkSuccess"></span></p>
            </div>
            <div style="overflow: hidden;width:69% ">
                <div class="right" style="height: 380px; width:calc(100% + 19px);overflow: auto;font-size: 18px">
          <%--  <div style="height: 300px;">
                <div class="right" style="height: 70px;margin-top: 51px">--%>
                <table id="accessControl_table" border="2">
                    <tr>
                        <th class="blueBg">设备名称</th>
                        <th class="blueBg">链接状态</th>
                        <th class="blueBg">报警状态</th>
                        <th class="blueBg">备注</th>
                    </tr>
                    <tr>
                        <th class="blueBg"  style="width: 130px;">2号机柜内烟感探测</th>
                        <td><span class="linkSuccess" name=""></span></td>
                        <td><span name="cztstate" class="linkSuccess"></span></td>
                        <td><span name=""></span></td>
                       <%-- <td><span name="cztvoltage"></span></td>--%>
                    </tr>
                    <tr>
                        <th class="blueBg">9号机柜内烟感探测</th>
                        <td><span class="linkSuccess" name=""></span></td>
                        <td><span name="state1" class="linkSuccess"></span></td>
                        <td><span name=""></span></td>
                       <%-- <td><span name="voltage1"></span></td>--%>
                    </tr>
                    <tr>
                        <th class="blueBg">9号机柜上方烟感探测</th>
                        <td><span class="linkSuccess" name=""></span></td>
                        <td><span name="state9d" class="linkSuccess"></span></td>
                        <td><span name=""></span></td>
                       <%-- <td><span name="voltage9d"></span></td>--%>
                    </tr>
                    <tr>
                        <th class="blueBg">操作间烟感探测</th>
                        <td><span class="linkSuccess"  name=""></span></td>
                        <td><span name="state2" class="linkSuccess"></span></td>
                        <td><span name=""></span></td>
                       <%-- <td><span name="voltage2"></span></td>--%>
                    </tr>
                    <tr>
                        <th class="blueBg">1号机柜上方烟感探测</th>
                        <td><span class="linkSuccess"  name=""></span></td>
                        <td><span name="state9" class="linkSuccess"></span></td>
                        <td><span name=""></span></td>
                        <%--<td><span name="voltage9"></span></td>--%>
                    </tr>
                    <tr>
                        <th class="blueBg">机房大门状态磁感器</th>
                        <td><span class="linkSuccess"  name=""></span></td>
                        <td><span name="menc" class="linkSuccess"></span></td>
                        <td><span></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">机房大门红外报警</th>
                        <td><span class="linkSuccess"  name=""></span></td>
                        <td><span name="hwgy" class="linkSuccess"></span></td>
                        <td><span></span></td>
                    </tr>
                   <%-- <tr>
                        <th class="blueBg">机房大门人体活动</th>
                        <td><span class="linkSuccess"  name=""></span></td>
                        <td><span name="rthd" class="linkSuccess"></span></td>
                        <td></td>
                    </tr>--%>
                </table>
            </div>
            </div>
        </div>
    </div>
</div>

</div>
<script>
    $(function () {
        var count = 0;
        var t = setInterval(function () {
            var $redDiv = $("#box").find(".greenBg");
            if(count === 15){
                count=-1;
                $("#box").find('.greenBg').removeClass('greenBg').addClass('white');
                $redDiv=$("#box").find(".first");
                $("#box").find(".last").removeClass("greenBg").addClass("white");
            }
            $redDiv.next().removeClass("white").addClass("greenBg");
            count++;
        }, 1000);
        //if($.websocket.socketMsgs) {

        // var entity4=$.websocket.yg4all

        $.post("/manage/demo/equipment/fetchLastData.html?eids="+ $.websocket.yg+","+ $.websocket.yg1+","+ $.websocket.yg2+","+ $.websocket.yg3+","+ $.websocket.yg4+","+ $.websocket.menci+","+ $.websocket.hwrt+","+ $.websocket.hwgyq,function (entity) {

        })


    });
</script>